<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/> 
<link href="res/css/layout.css" rel="stylesheet" type="text/css" media="all" />
<link href="res/css/auth.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="res/js/auth.js"></script>
<script type="text/javascript" src="res/js/func.js"></script>
<title>roadmap | 修改密码</title>
</head>

<body>
<div id="container">
	<jsp:include page="/admin/myheader.jsp"></jsp:include>
	
	<!-- define the frame for logging on-->
	<div class="mainbody">
	<div class="signs-height">	
	<div class="logonbody">		
		<div class="logon-div">		
			<div class="login-form">
				<div class="title-div">修改密码</div>		
				<!-- define a form for logging in -->
				<html:form action="/reset" onsubmit="return resetPwd();">
					<div class="frame">	
					<div id="resetPwdMessage" class="error-message">
						<span><html:errors property="resetPwdError"/></span>
					</div>
					<!-- define a form for registration -->
						<table class="login-table">	
							<tr>
								<td class="left-column">旧密码:</td>
								<td class="right-column"><input id="oldPassword" class="input-text" type="password" name="oldPassword" tabindex="2" maxlength="16"
															onfocus="promptOldPwd();" onblur="checkOldPwd();"/></td>						
								<td class="message-column"><span id="oldPwdMsg" class="prompt-message"><span></td>
							</tr>
							<tr>
								<td class="left-column">新密码:</td>
								<td class="right-column"><input id="password" class="input-text" type="password" name="password" tabindex="3" maxlength="16"
															onfocus="promptPwd();" onblur="checkPassword();"/></td>						
								<td class="message-column"><span id="pwdMsg" class="prompt-message"><span></td>
							</tr>
							<tr>
								<td class="left-column">确认密码:</td>
								<td class="right-column"><input id="confirmPassword" class="input-text" type="password" name="confirmPassword" tabindex="4" maxlength="16"
															onfocus="promptRePwd();" onblur="checkConfirmPassword();"/></td>						
								<td class="message-column"><span id="confPwdMsg" class="prompt-message"><span></td>
							</tr>
							<tr>
								<td class="left-column"></td>
								<td class="right-column"><input id="resetPwdSubmit" class="confirmBtn" type="submit" value="确定" name="resetPwdSubmit" tabindex="5"/></td>
							</tr>
						</table>
					</div>
				</html:form>	
			</div>
		</div>		
	</div></div>
	<div class="clear-div"></div>
	</div>
	
	<jsp:include page="/res/jsp/footer.jsp"></jsp:include>
</div>

<script type="text/javascript">
	$("oldPassword").focus();
</script>

</body>

</html>
